<template>
  <el-card class="box">
    <img :src="useStore.avatar" class="avatar" />
    <div class="content">
      <h3>{{ getTime() }}好呀！ {{ useStore.username }}</h3>
      <p>硅谷甄选运营平台</p>
    </div>
  </el-card>
  <div style="text-align: center">
    <svg-icon name="welcome" width="600px" height="500px"></svg-icon>
  </div>
</template>
<script setup lang="ts">
import { getTime } from '@/utils/time'
// import { onMounted } from 'vue'
// 引入用户相关的仓库， 获取当前用户的头像、昵称
import useUserStore from '@/store/modules/user'

const useStore = useUserStore()

// onMounted(() => {
//   useStore.userInfo()
// })
</script>
<style scoped lang="scss">
::v-deep .el-card__body {
  display: flex;
  align-items: center;

  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* align-items: center; */
    height: 90px;
    margin-left: 20px;
  }
  h3 {
    font-weight: 600;
    font-size: 30px;
  }
  p {
    font-family: YouYuan;
  }
}
</style>
